home *** CD-ROM | disk | FTP | other *** search
/ JCSM Shareware Collection 1993 November / JCSM Shareware Collection - 1993-11.iso / cl720 / sst115j.lzh / MDEMO.C < prev    next >
C/C++ Source or Header  |  1992-07-17  |  2KB  |  79 lines

  1. /* ------------------------------------------------------------------------ */
  2. /*                                 mdemo.c                                  */
  3. /* ------------------------------------------------------------------------ */
  4. #include <stdio.h>
  5. #include <conio.h>
  6.  
  7. #include "sstkey.h"
  8. #include "sstwin.h"
  9. #include "sstmnu.h"
  10.  
  11. static void      dummy     (void);
  12.  
  13. /* ---------- menu tables --------- */
  14. char *wselcs[] = {
  15.     " Colours Titles ",
  16.     " Promote ",
  17.     " Fast ",
  18.     " Move ",
  19.     NULL
  20. };
  21. char *eselcs[] = {
  22.     " Orders ",
  23.     " All Orders ",
  24.     " Lists ",
  25.     NULL
  26. };
  27. char *dselcs[] = {
  28.     " Editor ",
  29.     NULL
  30. };
  31. char *mselcs[] = {
  32.     " Direct Video ",
  33.     " Super Colors ",
  34.     " Set 50 lines ",
  35.     " Set 43 lines ",
  36.     " Set 25 lines ",
  37.     NULL
  38. };
  39.  
  40. static void (*wfuncs[])()={dummy,dummy,dummy,dummy};
  41. static void (*efuncs[])()={dummy,dummy,dummy};
  42. static void (*dfuncs[])()={dummy};
  43. static void (*mfuncs[])()={dummy,dummy,dummy,dummy,dummy};
  44. static MENU tmn [] = {
  45.     {"Windows",     wselcs, wfuncs},
  46.     {"Entrys",    eselcs, efuncs},
  47.     {"Editor",    dselcs, dfuncs},
  48.     {"Misc",        mselcs, mfuncs},
  49.     {"Australia",   mselcs, mfuncs},
  50.     {"Europe",      mselcs, mfuncs},
  51.     {"Middle East", mselcs, mfuncs},
  52.     {NULL,NULL,NULL}
  53. };
  54.  
  55.  
  56. /* ------------------------------------------------------------------------ */
  57. /* ------------------------------------------------------------------------ */
  58. static void dummy(void)
  59.  
  60. {
  61.  
  62. }
  63.  
  64. /* ------------------------------------------------------------------------ */
  65. void main(void)
  66. {
  67.     Msetcolour(WIN_BORDER,LIGHTGRAY,BLACK,DIM);
  68.     Msetcolour(WIN_TITLE ,LIGHTGRAY,RED,DIM);
  69.     Msetcolour(WIN_ACCENT,GREEN,BLACK,DIM);
  70.     Msetcolour(WIN_FACE,LIGHTGRAY,BLACK,DIM);
  71.     Msettitle("[Menu Demo]",JUST_C);
  72.     Msetspace(2,SPC_LEFT | SPC_RIGHT);
  73.     Msetspace(4,SPC_BETWEEN);
  74.     Mselect(tmn,FALSE);
  75. }
  76.  
  77.  
  78.  
  79.